package cn.edu.zafu.bigdata.yt;

public abstract class Shape_yt {
    public abstract double area();
    
    public abstract double perimeter();

    public final void display() {
        System.out.println("Type: " + this.getClass().getSimpleName());
        System.out.println("Area: " + area());
        System.out.println("Perimeter: " + perimeter());
    }
    
}
